package com.dtx.datastruct.recursion.reversepolishmulticalc;

import static com.dtx.datastruct.recursion.reversepolishmulticalc.ReversePolishMultiCalc.doCalc;

public class ReversePolishMultiCalcDemo {
    public static void main(String[] args) {
        ReversePolishMultiCalc r = new ReversePolishMultiCalc();
        //String math = "9+(3-1)*3+10/2";
        String math = "12.8 + (2 - 3.55)*4+10/5.0";
        try {
            doCalc(r.doMatch(math));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
